import axios from './$http'
import configStore from '../store/modules/systemConfig.js'


const cache = new Map();
const api = {
    clearCache() {
        cache.clear();
    },

    async queryParamList() {
        const config = configStore();
        let url = `/${config.contextPath}/dynamic/customerConfig/list`
        const result = await axios.post(url, {});
        return result;
    },

    async addConfig(data) {
        const config = configStore();
        let url = `/${config.contextPath}/dynamic/customerConfig/add`
        const result = await axios.post(url, data);
        return result;
    }
}

export default api;